package com.mjf.cjt.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mjf.cjt.domain.MjfManufactureOrderDetailsMaterial;
import com.mjf.cjt.mapper.MjfManufactureOrderDetailsMaterialMapper;
import com.mjf.cjt.service.IMjfManufactureOrderDetailsMaterialService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 生产加工单材料明细表 服务实现类
 * </p>
 *
 * @author
 * @since 2025-04-05
 */
@Service
public class MjfManufactureOrderDetailsMaterialServiceImpl extends ServiceImpl<MjfManufactureOrderDetailsMaterialMapper, MjfManufactureOrderDetailsMaterial> implements IMjfManufactureOrderDetailsMaterialService {

	@Override
	public List<MjfManufactureOrderDetailsMaterial> queryListByMdId(Long mdId) {
		QueryWrapper<MjfManufactureOrderDetailsMaterial> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("md_id", mdId);
		return super.getBaseMapper().selectList(queryWrapper);
	}

}
